package cn.faifai.framework.utils;

import com.google.common.eventbus.EventBus;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class SingleEvenBus {
    private SingleEvenBus(){
        log.info("初始化总线");
    }

    private static class SingletonHolder {
        private static final EventBus INSTANCE = new EventBus();
    }
    public static EventBus getInstance() {
        return SingletonHolder.INSTANCE;
    }
}
